﻿
using BCCommon;
using BCCommon.Enums;
using BCData.TMS.VehicleBusinessMapping;
using BCDto.Sim.Admin.Admin;
using BCDto.TMS.VehicleBusinessMapping;
using BCEntity.TMS.VehicleBusinessMapping;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.TMS.VehicleBusinessMapping
{
	/// <summary>
	/// 车辆与业务配置
	/// </summary>
	public interface IVehicleBusinessMappingService
	{
		#region  成员方法
		///// <summary>
		///// 是否存在此记录
		///// </summary>
		///// <param name="vehicleBusinessMappingId">车辆与业务配置Id</param>
		///// <param name="agentRecordId">代理商Id</param>
		//bool Exists(int vehicleBusinessMappingId, long? agentRecordId);
		/// <summary>
		/// 添加车辆与业务配置
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="requestDto">车辆与业务配置信息</param>
		VehicleBusinessMappingDto Add(AdminDto adminDto,VehicleBusinessMappingRequestDto requestDto);
		/// <summary>
		/// 更新车辆与业务配置
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="putDto">车辆与业务配置信息</param>
		/// <returns></returns>
		VehicleBusinessMappingDto Update(AdminDto adminDto, VehicleBusinessMappingPutDto putDto);
		///// <summary>
		///// 更新车辆与业务配置（重写）
		///// </summary>
		///// <param name="adminDto">员工信息</param>
		///// <param name="putDto">车辆与业务配置信息</param>
		//VehicleBusinessMappingDto Update(AdminDto adminDto, VehicleBusinessMappingOverwriteDto putDto);
		/// <summary>
		/// 删除车辆与业务配置
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="vehicleBusinessMappingId">车辆与业务配置Id</param>
		bool Delete(AdminDto adminDto, int vehicleBusinessMappingId);
		/// <summary>
		/// 获取车辆与业务配置
		/// </summary>
		/// <param name="vehicleBusinessMappingId">车辆与业务配置Id</param>
		VehicleBusinessMappingDto Get(int vehicleBusinessMappingId);
		/// <summary>
		/// 获取车辆与业务配置列表
		/// </summary>
		IEnumerable<VehicleBusinessMappingDto> GetList();
		/// <summary>
		/// 获取车辆与业务配置分页列表
		/// </summary>
		/// <param name="vehicleTransportBusinessConfigId">车辆运输业务配置Id</param>
		/// <param name="vehicleTypeId">车型Id</param>
		/// <param name="enabled">启用</param>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">车辆与业务配置每页数据条数</param>
		PageableList<VehicleBusinessMappingDto> Query(int? vehicleTransportBusinessConfigId, int? vehicleTypeId, bool? enabled, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		/// <summary>
		/// 启用车辆与业务配置
		/// </summary>
		/// <param name="adminDto">员工信息</param>
		/// <param name="vehicleBusinessMappingId">车辆与业务配置Id</param>
		/// <param name="vehicleBusinessMappingOverwriteId">车辆与业务配置重写Id</param>
		/// <param name="countyCode">区县编码</param>
		bool Enabled(AdminDto adminDto, int vehicleBusinessMappingId,int? vehicleBusinessMappingOverwriteId, string countyCode);
        /// <summary>
        /// 禁用车辆与业务配置
        /// </summary>
        /// <param name="adminDto">员工信息</param>
        /// <param name="vehicleBusinessMappingId">车辆与业务配置Id</param>
        /// <param name="vehicleBusinessMappingOverwriteId">车辆与业务配置重写Id</param>
        /// <param name="countyCode">区县编码</param>
        bool Disabled(AdminDto adminDto, int vehicleBusinessMappingId, int? vehicleBusinessMappingOverwriteId, string countyCode);
		#endregion  成员方法
	}
}